package com.bnlr.lrparking.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by tian on 2017/10/19.
 */

public class MyPublishBean{

    /**
     * errorCode : 0
     * msgcode : 1
     * msg : 成功
     * data : [{"RowNum":1,"Id":63309,"Type":11,"Title":"出售 银城佳园 30平米","Area":"海沧","Address":"同安同安区三秀北里51-61","Size":30,"Price":"450000 元","Status":"待售","StatusInt":0,"SpaceOwerType":1,"PhotoUrl":"http://91tcw.cn/upload/201710/30/201710301027425989.jpg","AuditStatus":0,"RejectReason":"","CreateTime":""}]
     * recordCount : 1
     */

    private int errorCode;
    private String msgcode;
    private String msg;
    private int recordCount;
    private List<DataBean> data;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getMsgcode() {
        return msgcode;
    }

    public void setMsgcode(String msgcode) {
        this.msgcode = msgcode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable, MultiItemEntity {
        /**
         * RowNum : 1
         * Id : 63309
         * Type : 11
         * Title : 出售 银城佳园 30平米
         * Area : 海沧
         * Address : 同安同安区三秀北里51-61
         * Size : 30
         * Price : 450000 元
         * Status : 待售
         * StatusInt : 0
         * SpaceOwerType : 1
         * PhotoUrl : http://91tcw.cn/upload/201710/30/201710301027425989.jpg
         * AuditStatus : 0
         * RejectReason :
         * CreateTime :
         */
        public static final int CHU_ZU = 10;
        public static final int CHU_SHOU = 11;
        public static final int QIU_ZU = 20;
        public static final int QIU_GOU = 21;
        private int RowNum;
        private int Id;
        private int Type;
        private String Title;
        private String Area;
        private String Address;
        private Double Size;
        private String Price;
        private String Status;
        private int StatusInt;
        private int SpaceOwerType;
        private String PhotoUrl;
        private int AuditStatus;
        private String RejectReason;
        private String CreateTime;
        private String CommonNumber;
        private String Number;

        public String getCommonNumber() {
            return CommonNumber;
        }

        public String getNumber() {
            return Number;
        }

        public int getRowNum() {
            return RowNum;
        }

        public void setRowNum(int RowNum) {
            this.RowNum = RowNum;
        }

        public int getId() {
            return Id;
        }

        public void setId(int Id) {
            this.Id = Id;
        }

        public int getType() {
            return Type;
        }

        public void setType(int Type) {
            this.Type = Type;
        }

        public String getTitle() {
            return Title;
        }

        public void setTitle(String Title) {
            this.Title = Title;
        }

        public String getArea() {
            return Area;
        }

        public void setArea(String Area) {
            this.Area = Area;
        }

        public String getAddress() {
            return Address;
        }

        public void setAddress(String Address) {
            this.Address = Address;
        }

        public Double getSize() {
            return Size;
        }

        public void setSize(Double Size) {
            this.Size = Size;
        }

        public String getPrice() {
            return Price;
        }

        public void setPrice(String Price) {
            this.Price = Price;
        }

        public String getStatus() {
            return Status;
        }

        public void setStatus(String Status) {
            this.Status = Status;
        }

        public int getStatusInt() {
            return StatusInt;
        }

        public void setStatusInt(int StatusInt) {
            this.StatusInt = StatusInt;
        }

        public int getSpaceOwerType() {
            return SpaceOwerType;
        }

        public void setSpaceOwerType(int SpaceOwerType) {
            this.SpaceOwerType = SpaceOwerType;
        }

        public String getPhotoUrl() {
            return PhotoUrl;
        }

        public void setPhotoUrl(String PhotoUrl) {
            this.PhotoUrl = PhotoUrl;
        }

        public int getAuditStatus() {
            return AuditStatus;
        }

        public void setAuditStatus(int AuditStatus) {
            this.AuditStatus = AuditStatus;
        }

        public String getRejectReason() {
            return RejectReason;
        }

        public void setRejectReason(String RejectReason) {
            this.RejectReason = RejectReason;
        }

        public String getCreateTime() {
            return CreateTime;
        }

        public void setCreateTime(String CreateTime) {
            this.CreateTime = CreateTime;
        }

        public DataBean() {
        }

        @Override
        public int getItemType() {
            return this.Type;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.RowNum);
            dest.writeInt(this.Id);
            dest.writeInt(this.Type);
            dest.writeString(this.Title);
            dest.writeString(this.Area);
            dest.writeString(this.Address);
            dest.writeValue(this.Size);
            dest.writeString(this.Price);
            dest.writeString(this.Status);
            dest.writeInt(this.StatusInt);
            dest.writeInt(this.SpaceOwerType);
            dest.writeString(this.PhotoUrl);
            dest.writeInt(this.AuditStatus);
            dest.writeString(this.RejectReason);
            dest.writeString(this.CreateTime);
            dest.writeString(this.CommonNumber);
            dest.writeString(this.Number);
        }

        protected DataBean(Parcel in) {
            this.RowNum = in.readInt();
            this.Id = in.readInt();
            this.Type = in.readInt();
            this.Title = in.readString();
            this.Area = in.readString();
            this.Address = in.readString();
            this.Size = (Double) in.readValue(Double.class.getClassLoader());
            this.Price = in.readString();
            this.Status = in.readString();
            this.StatusInt = in.readInt();
            this.SpaceOwerType = in.readInt();
            this.PhotoUrl = in.readString();
            this.AuditStatus = in.readInt();
            this.RejectReason = in.readString();
            this.CreateTime = in.readString();
            this.CommonNumber = in.readString();
            this.Number = in.readString();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
